package com.my.blog.myblog.entity;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

@Data
@TableName("t_links")
public class Links implements Serializable {
    private Integer id;

    private String link;

    private String name;

    @TableField("clickNum")
    private Integer clicknum;

    /**
    * 排序字段
    */
    private Integer sort;

    /**
    * 1为上架，-1为下架
    */
    private Integer status;

    @TableField("addTime")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime addTime;

    /**
     * 1为审核通过，-1为待审核
     */
    @TableField("isApply")
    private Integer isApply;
}